package com.lstimeline.bean;

/**
 * This bean contains the status messages from all the schools
 * @author Harry Zhou
 * @version Jan. 2009
 */
public class StatusBean implements Comparable<StatusBean> {
	private String school;
	private String status;
	
	public StatusBean() {
		school = "unspecified";
		status = "unspecified";
	}
	
	public void setSchool(String newSchool) {
		school = newSchool;
	}
	
	public void setStatus(String newStatus) {
		status = newStatus;
	}
	
	public String getSchool() {
		return school;
	}
	
	public String getStatus() {
		return status;
	}
	
	public int compareTo(StatusBean sb) {
		if(sb instanceof StatusBean) {
			return school.compareTo(sb.getSchool());
		} else {
			return 0;
		}
	}
}
